﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using ZhongJia.Core.Consts;

namespace GuanQL.Service.Accounts.Dto
{
    public class AdminLoginInput
    {
        [Display(Name = "用户名")]        
        [Required(AllowEmptyStrings = false, ErrorMessage = "{0}未输入")]
        public string UserName { get; set; }

        [Display(Name = "密码")]
        [RegularExpression(GlobalRegularExpression.SamplePassword, ErrorMessage = "{0}由6-20个字母、数字、下划线组成")]
        public string Password { get; set; }
    }
}
